<%@ Page Title="" Language="C#" MasterPageFile="~/Master/loggedin.Master" AutoEventWireup="true" CodeBehind="find.aspx.cs" Inherits="Ciripescu_WebRole.find" %>

<%@ Register Assembly="WebTools.UI" Namespace="WebTools.UI.WebControls" TagPrefix="webtools" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
    function clickButton(e, buttonid) {
        var evt = e ? e : window.event;
        var bt = document.getElementById(buttonid);
        if (bt) {
            if (evt.keyCode == 13) {
                bt.click();
                return false;
            }
        }
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">    
<br />    
<div>
    <cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="1" 
        Width="100%" enableTabScroll="true" 
        CssClass="fancy fancy-green" >
        <cc1:TabPanel runat="server" HeaderText="Prieteni pe Ciripescu" ID="TabPanel1" ScrollBars="Auto">
        <ContentTemplate>
        <div>
         <asp:Label ID="Label1" runat="server" Text="Gaseste lume. Urmareste-o." CssClass="title"></asp:Label>
        </div>
        <br />  
        <table align="center">
        <tr>
        <td class="label_cell">
            <asp:TextBox ID="txtSearchInput" runat="server" CssClass="textbox_large" Width="300px"></asp:TextBox>
        </td>
        <td>
            <webtools:RolloverImageButton ID="btnCauta" onclick="btnCauta_Click" runat="server" ImageUrl="/images/buttons/cauta.png" MouseOutImageUrl="/images/buttons/cauta.png" MouseOverImageUrl="/images/buttons/cauta_o.png"></webtools:RolloverImageButton>
            
        </td>
        </tr>
        </table>
        <div>
        <asp:Repeater ID="Repeater1" runat="server" 
    onitemdatabound="Repeater1_ItemDataBound" onitemcommand="Repeater1_ItemCommand">
<HeaderTemplate>
    <table width="100%" cellspacing="8">
    <td width="50px"></td>
    <td></td>
    <td width="20px"></td>
</HeaderTemplate>
<ItemTemplate>
    <tr>
        <td>
            <img src='<%#Eval("PictureUri") %>' /></td>
        <td valign="top">
            <a href='/profile.aspx?userName=<%#Eval("PartitionKey")%>'>
            <%#Eval("PartitionKey")%></a>/<%#Eval("FullName") %>
            <br />
        </td>
        <td>
              <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        <asp:ImageButton ID="btnFollow" runat="server" CommandArgument='<%#Eval("PartitionKey") %>' ImageUrl="/images/buttons/urmareste.png" />
        </ContentTemplate>
        </asp:UpdatePanel>
        
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <Triggers>
        <asp:AsyncPostBackTrigger ControlID="btnFollow" EventName="Click" />
        </Triggers>
        <ContentTemplate>
        <asp:Label ID="lblAlreadyFollowed" runat="server"
            Text="urmarit..." Visible="false"></asp:Label>
        </ContentTemplate>
        </asp:UpdatePanel>    
        </td>
    </tr>
</ItemTemplate>
<FooterTemplate>
    </table>    
</FooterTemplate>
</asp:Repeater>
        </div>
</ContentTemplate>        
</cc1:TabPanel>
        <%--<cc1:TabPanel ID="TabPanel2" runat="server" HeaderText="In alte retele">
            <HeaderTemplate>
                In alte retele
            </HeaderTemplate>
            <ContentTemplate>
            <br />
            <div class="label_large"> Trimite invitatii prietenilor tai sau urmareste-i pe cei care sunt aici...
            
            </div>
            <br />
            <asp:UpdatePanel ID="UpdatePanel6" runat="server">
            <ContentTemplate>
                <div>
                    <asp:Image ID="imgLoading" runat="server" ImageUrl="/images/loading.gif" Visible="false" />
                    <asp:Label ID="lblInfo" runat="server" 
                        Text="Caut in address book. Incarcarea dureaza, trebuie sa astept..." 
                        CssClass="label"></asp:Label>
                </div>
                <br />
                <asp:Wizard ID="Wizard1" runat="server" DisplaySideBar="False" 
                    onnextbuttonclick="Wizard1_NextButtonClick" 
                    onactivestepchanged="Wizard1_ActiveStepChanged" 
                    onfinishbuttonclick="Wizard1_FinishButtonClick" ActiveStepIndex="0">
                    <WizardSteps>
                        <asp:WizardStep ID="WizardStep1" runat="server" Title="Step 1" AllowReturn="False">
                            <table>
                        <tr>
                        <td class="label_cell">
                            <asp:Label ID="Label3" runat="server" Text="Username:" CssClass="label"></asp:Label></td>
                        <td>
                            <asp:TextBox ID="txtUserName" runat="server" CssClass="textbox"></asp:TextBox></td>
                        </tr>
                        <tr>
                        <td class="label_cell">
                            <asp:Label ID="Label4" runat="server" Text="Parola:" CssClass="label"></asp:Label></td>
                        <td>
                            <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" CssClass="textbox"></asp:TextBox></td>
                        </tr>
                        </table>
                        
                            <asp:RadioButtonList ID="radEmailProvider" runat="server" RepeatDirection="Horizontal">
                            
                                <asp:ListItem Selected="True">Yahoo</asp:ListItem>
                                <asp:ListItem>Gmail</asp:ListItem>
                            
                            </asp:RadioButtonList>
                            <br />
                            <div id="divError" runat="server" class="errors"></div>
                        </asp:WizardStep>
                        <asp:WizardStep ID="WizardStep2" runat="server" Title="Step 2" AllowReturn="False" OnActivate="OnActivate_WizardStep2">
                        <asp:GridView ID="gwToFollowOnCiripescu" runat="server" Width="100%" 
                        AutoGenerateColumns="False" CellPadding="3" 
                        GridLines="Horizontal" BackColor="Transparent" BorderColor="#E7E7FF" 
                        BorderStyle="None" BorderWidth="1px">
                    <RowStyle BackColor="Transparent" ForeColor="#4A3C8C" />
                    <Columns>
                        <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:CheckBox ID="chkSelect1" runat="server" Text="Toti" AutoPostBack="True" Checked="true" OnCheckedChanged="chkSelect1_OnClickChanged" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chkMarked" runat="server" Checked="true" />
                        </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Nume">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%#Eval("FullName")%>'></asp:Label>
                        </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                    <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                    <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
                    <AlternatingRowStyle BackColor="#F7F7F7" />
                </asp:GridView>
                
                        </asp:WizardStep>
                        
                        <asp:WizardStep ID="WizardStep3" runat="server" Title="Step3" AllowReturn="False">
                        
<asp:GridView ID="gwToFollowNotOnCirip" runat="server" Width="100%" 
                        AutoGenerateColumns="False" CellPadding="3" 
                        GridLines="Both" BackColor="Transparent" BorderColor="#E7E7FF" 
                        BorderStyle="None" BorderWidth="1px" AllowSorting="True" AllowPaging="True" 
                                OnPageIndexChanged="gwToFollowNotOnCirip_PageIndexChanged" 
                                OnPageIndexChanging="gwToFollowNotOnCirip_PageIndexChanging">
                    <RowStyle BackColor="Transparent" ForeColor="#4A3C8C" />
                    <Columns>
                        <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:CheckBox ID="chkSelect2" runat="server" Text="Toti" AutoPostBack="True" Checked="true" OnCheckedChanged="chkSelect2_OnClickChanged" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chkMarked" runat="server" Checked="true" />
                        </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Nume">
                        <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%#Eval("Name") %>'></asp:Label>
                        </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Email">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%#Eval("Email")%>'></asp:Label>
                        </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                    <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                    <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
                    <AlternatingRowStyle BackColor="#F7F7F7" />
                </asp:GridView>                        </asp:WizardStep>
                        
                    </WizardSteps>
                    
                </asp:Wizard>
            </ContentTemplate>
            </asp:UpdatePanel>
            </ContentTemplate>
            
        </cc1:TabPanel>--%>
        <cc1:TabPanel ID="TabPanel3" runat="server" HeaderText="In alte retele">
        <ContentTemplate>
        <br />
        <%-- <div>
           <asp:ImageButton ID="btnSendYahooInvitations" runat="server" 
                onclick="btnSendYahooInvitations_Click" 
                ImageUrl="/images/buttons/invita_yahoo.png" /> 
        </div>
        <br />
        <div class="title">sau</div>--%>
        <div>
            <asp:Label ID="Label5" runat="server" Text="Introdu adresele separate prin virgula:" CssClass="title"></asp:Label>
        </div>
        <br />
        
        <div >
            <asp:TextBox ID="txtAddresses" runat="server" TextMode="MultiLine"  CssClass="textbox_gen"
                Height="220px" Width="500px"></asp:TextBox>
        </div>
        <div>
            
            <webtools:RolloverImageButton ID="btnSendInvitations" runat="server" onclick="btnSendInvitations_Click" ImageUrl="/images/buttons/invita.png" MouseOutImageUrl="/images/buttons/invita.png" MouseOverImageUrl="/images/buttons/invita_o.png" ToolTip="Invita"></webtools:RolloverImageButton>
        </div>
        </ContentTemplate>
        </cc1:TabPanel>        
       
        <cc1:TabPanel ID="TabPanel2" runat="server" HeaderText="De pe Yahoo Messanger">
        <ContentTemplate>
                <div>
                <h3>
                <asp:Label ID="Label2" runat="server" Text="Adaugare contacte de pe contul de yahoo (messanger)" CssClass="label_large"></asp:Label>
                </h3>
                <asp:Label ID="Label3" runat="server" Text="Ciripescu.ro nu stocheaza usernames sau parole, al contului d-voastra sau din address bookul aferent contului." Font-Italic="True"></asp:Label>
                </div>
                <table cellspacing="8" align="center">
                    <tr>
                        <td colspan='2'><div id='errors' runat="server"  class="errors"></div></td>
                    </tr>
                    <tr>
                        <td class="label label_cell">Yahoo username:</td>
                        <td><asp:TextBox ID="txtYahooUser" runat="server" CssClass="txt"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td class=" label label_cell">Yahoo parola:</td>
                        <td><asp:TextBox ID="txtYahooPassword" runat="server" TextMode="Password" CssClass="txt"></asp:TextBox></td>
                    </tr>
                    <tr>
                    <td></td>
                        <td> 
                            
                            <webtools:RolloverImageButton ID="btnYahooImport" runat="server"  OnClick="btnYahooImport_Click" ImageUrl="/images/buttons/importa.png" MouseOutImageUrl="/images/buttons/importa.png" MouseOverImageUrl="/images/buttons/importa_o.png" ToolTip="Importa contacte"></webtools:RolloverImageButton>
                        </td>
                    </tr>
                </table>
                </ContentTemplate>
        </cc1:TabPanel>
       
    </cc1:TabContainer>
</div>
</asp:Content>
